var sqldata=require('./sqldata.js');
var arr=[
    {uid:122,uname:'ccc'},
    {uid:7889,uname:'pppp'
    }
]
arr.map(val=>{
    let sql=`insert into pet values(${val.uid},'${val.uname}')`
    sqldata.query(sql,(err,data)=>{
        if(err) throw err;
        console.log(data);
    })
})